package classfile

type ConstantUtf8Info struct {
	tag       uint8
	length    uint16
	bytes     []byte
}

func (self *ConstantUtf8Info) readInfo(reader *ClassReader) {
	self.tag = 1
	self.length = reader.readUint16()
	bytes := reader.readBytes(uint32(self.length))
	self.bytes = make([]byte, self.length)
	for index, val := range bytes {
		self.bytes[index] = val
	}
}
